package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.DyClient;
import com.ruoyi.system.domain.bo.DyAnchorPhotoBo;
import com.ruoyi.system.domain.bo.DyClientAnchorBo;
import com.ruoyi.system.domain.vo.DyClientVo;
import com.ruoyi.system.domain.bo.DyClientBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.system.vo.DyClientLoginVo;

import java.util.Collection;
import java.util.List;

/**
 * 微信用户Service接口
 *
 * @author ruoyi
 * @date 2024-08-02
 */
public interface IDyClientService {

    /**
     * 查询微信用户
     */
    DyClientVo queryById(Long id);

    /**
     * 查询微信用户列表
     */
    TableDataInfo<DyClientVo> queryPageList(DyClientBo bo, PageQuery pageQuery);

    /**
     * 查询微信用户列表
     */
    List<DyClientVo> queryList(DyClientBo bo);

    /**
     * 新增微信用户
     */
    Boolean insertByBo(DyClientBo bo);

    /**
     * 修改微信用户
     */
    Boolean updateByBo(DyClientBo bo);

    /**
     * 校验并批量删除微信用户信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    DyClient createClient(String openId);

    DyClient getUserInfoByOpenId(String openId);

    R<DyClientLoginVo> login(DyClientBo bo);

    R<DyClientLoginVo> register(DyClientBo bo);

    R<String> buyClientAnchor(DyClientAnchorBo bo);

    String buyClientAnchorPhoto(DyAnchorPhotoBo bo);
}
